home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore Disk User Volume 3 #10
/
Commodore_Disk_User_Vol.3_10_1990_-.d64
/
sec v3.00
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
2KB
|
54 lines
100 poke53280,0:poke53281,0:poke 650,128:print"[147]":print chr$(14)
110 print"[159] [211]ecurity [214]2.00[157][157][157][157][157][157][157][157][157][157][157][157][157][157][158][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
200 print" [208]lease enter the time [200][200][205][205][211][211][157][157][157][157][157][157]";
300 for x = 1 to 6
400 get a$(x):if a$(x)=""then goto 400
500 ifasc(a$(x))<48orasc(a$(x))>57 then goto 400
600 print a$(x);
700 next x
800 t$=a$(1)+a$(2)+a$(3)+a$(4)+a$(5)+a$(6)
900 if val(t$)>235959orval(t$)<000000orlen(t$)<>6 then goto 200
1000 if val(left$(t$,2))>23then goto 200
1100 if val(mid$(t$,3,2))>59then print "[201]nvalid time!":goto 200
1200 if val(right$(t$,2))>59then goto 200
1250 print:print" [208]ress a key to start clock."
1260 get l$:if l$ = "" then goto 1260
1300 ti$=t$
1310 print
1400 print tab(16)"[212]ime set.":for x = 1 to 2000:next x:print"[147]"
1500 print"[208]lug the wire into port #1 and close the door.";
1700 if peek(145)=255 then goto 1700
1800 print"[147][196]oor shut. [211]canning.........":open 1,8,1,"prgstrt @ "+ti$+",u"
1900 close 1
2000 ifpeek(145)=247thengoto2200
2100 goto 3300
2200 ifpeek(56320)=111then goto 2400
2300 goto 2000
2400 print"[208]ressure pad depressed at ";ti$:open 1,8,1,"prespad @ "+ti$+",u"
2500 close 1
2600 if peek(56320)=111thengoto 2600
2700 goto 2000
2800 rem
2900 rem *******************************
3000 rem * check! *
3100 rem *******************************
3200 rem
3300 b = b + 1
3400 q$=ti$
3450 ifpeek(145)=247thenw=val(ti$)-val(q$):goto 4000
3500 print"[194]reak in no.";b;" started at ";q$
3600 open 1,8,1,"brkin"+str$(b)+" @ "+ti$+",u"
3700 close 1
3800 ifpeek(145)=247thenprint"[193]nd finished at ";ti$:w=val(ti$)-val(q$):goto 4400
3900 ifpeek(56320)=111then goto 4100
4000 goto 3800
4100 print"[208]ressure pad depressed at ";ti$:open1,8,1,"prespad @ "+ti$+",u":close1
4200 if peek(56320)=111thengoto 4200
4300 goto 3800
4400 print"[204]ength of break in was ";w
4500 open 1,8,1,"brend"+str$(b)+" @ "+ti$+",u":goto4900
4600 goto 4800
4700 print"[204]ength of break in was ";w:goto4500
4800 goto 3800
4900 close 1:goto 2000